package com.h2n.utils;

/**
 * Created by IntelliJ IDEA.
 * User: NhatNV
 * Date: Jul 30, 2009
 * Time: 2:12:05 AM
 * To change this template use File | Settings | File Templates.
 */
public enum EDatetimeFormat {
  ddmmyyyy,
  mmddyyyy,
  yyyymmdd,
  hhMMssddmmyyyy,
  hhMMssmmddyyyy,
  hhMMssyyyymmdd,
  ddmmyyyyhhMMss,
  mmddyyyyhhMMss,
  yyyymmddhhMMss;
  public static String getFormatString(EDatetimeFormat formatString){
    String retVal = "";
    switch(formatString){
      case ddmmyyyy:
        retVal = "dd-MM-yyyy";
      break;
      case ddmmyyyyhhMMss:
        retVal = "dd-MM-yyyy HH:mm:ss";
      break;
      case hhMMssddmmyyyy:
        retVal = "HH:mm:ss dd-MM-yyyy";
      break;
      case hhMMssmmddyyyy:
        retVal = "HH:mm:ss MM-dd-yyyy";
      break;
      case hhMMssyyyymmdd:
        retVal = "HH:mm:ss yyyy-MM-dd";
      break;
    }

    return retVal;
  }
}
